home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / Localization Tools / Localization using ResEdit™ 3.0 / Plugin for ODF 3 / Plugin for ODF 3.rsrc / VDL_130_Resource.FWab < prev    next >
Encoding:
Text File  |  1996-12-11  |  7.7 KB  |  269 lines

  1. //========================================================================================
  2. //
  3. // Viewer description for 'FWab' (ODF about box) resources
  4. //
  5. // Author:     Steve Crutchfield
  6. //
  7. // Copyright:  (c) 1996 by Apple Computer, Inc., all rights reserved.
  8. //
  9. //========================================================================================
  10.  
  11. //----------------------------------------------------------------------------
  12. // Definitions for useful script and language code pop-up menus.
  13. // (If ResEdit supported an #include mechanism, this could be
  14. // shared among serveral resource types.)
  15. //----------------------------------------------------------------------------
  16.  
  17. DeclareNamedStatement("ScriptCode")
  18.     Margin(0, 2, 0, 0)
  19.         IntegerPopup("Script:", 53, fScriptCode)
  20.             {
  21.                 IntItem("Roman", 0);
  22.                 IntItem("System script", -1);
  23.                 IntItem("Current script", -2);
  24.                 IntItem("Japanese", 1);
  25.                 IntItem("Traditional Chinese", 2);
  26.                 IntItem("Korean", 3);
  27.                 IntItem("Arabic", 4);
  28.                 IntItem("Hebrew", 5);
  29.                 IntItem("Greek", 6);
  30.                 IntItem("Cyrillic", 7);
  31.                 IntItem("Right/Left Symbols", 8);
  32.                 IntItem("Devanagari", 9);
  33.                 IntItem("Gurmukhi", 10);
  34.                 IntItem("Gujarati", 11);
  35.                 IntItem("Oriya", 12);
  36.                 IntItem("Bengali", 13);
  37.                 IntItem("Tamil", 14);
  38.                 IntItem("Telugu", 15);
  39.                 IntItem("Kannada", 16);
  40.                 IntItem("Malayalam", 17);
  41.                 IntItem("Sinhalese", 18);
  42.                 IntItem("Burmese", 19);
  43.                 IntItem("Khmer", 20);
  44.                 IntItem("Thai", 21);
  45.                 IntItem("Laotian", 22);
  46.                 IntItem("Georgian", 23);
  47.                 IntItem("Armenian", 24);
  48.                 IntItem("Simplified Chinese", 25);
  49.                 IntItem("Tibetan", 26);
  50.                 IntItem("Mongolian", 27);
  51.                 IntItem("Geez/Ethiopic", 28);
  52.                 IntItem("East European Roman", 29);
  53.                 IntItem("Vietnamese", 30);
  54.                 IntItem("Extended Arabic", 31);
  55.                 IntItem("Uninterpreted Symbols", 32);
  56.             };
  57.  
  58. DeclareNamedStatement("LanguageCode")
  59.     Margin(0, 2, 0, 2)
  60.         IntegerPopup("Language:", 53, fLanguageCode)
  61.             {
  62.                 IntItem("English", 0);
  63.                 IntItem("French", 1);
  64.                 IntItem("German", 2);
  65.                 IntItem("Italian", 3);
  66.                 IntItem("Dutch", 4);
  67.                 IntItem("Swedish", 5);
  68.                 IntItem("Spanish", 6);
  69.                 IntItem("Danish", 7);
  70.                 IntItem("Portuguese", 8);
  71.                 IntItem("Norwegian", 9);
  72.                 IntItem("Hebrew", 10);
  73.                 IntItem("Japanese", 11);
  74.                 IntItem("Arabic", 12);
  75.                 IntItem("Finnish", 13);
  76.                 IntItem("Greek", 14);
  77.                 IntItem("Icelandic", 15);
  78.                 IntItem("Maltese", 16);
  79.                 IntItem("Turkish", 17);
  80.                 IntItem("Croatian", 18);
  81.                 IntItem("TradChinese", 19);
  82.                 IntItem("Urdu", 20);
  83.                 IntItem("Hindi", 21);
  84.                 IntItem("Thai", 22);
  85.                 IntItem("Korean", 23);
  86.                 IntItem("Lithuanian", 24);
  87.                 IntItem("Polish", 25);
  88.                 IntItem("Hungarian", 26);
  89.                 IntItem("Estonian", 27);
  90.                 IntItem("Lettish", 28);
  91.                 IntItem("Latvian", 28);
  92.                 IntItem("Lapponian", 29);
  93.                 IntItem("Lappish", 29);
  94.                 IntItem("Faeroese", 30);
  95.                 IntItem("Farsi", 31);
  96.                 IntItem("Persian", 31);
  97.                 IntItem("Russian", 32);
  98.                 IntItem("SimpChinese", 33);
  99.                 IntItem("Flemish", 34);
  100.                 IntItem("Irish", 35);
  101.                 IntItem("Albanian", 36);
  102.                 IntItem("Romanian", 37);
  103.                 IntItem("Czech", 38);
  104.                 IntItem("Slovak", 39);
  105.                 IntItem("Slovenian", 40);
  106.                 IntItem("Yiddish", 41);
  107.                 IntItem("Serbian", 42);
  108.                 IntItem("Macedonian", 43);
  109.                 IntItem("Bulgarian", 44);
  110.                 IntItem("Ukrainian", 45);
  111.                 IntItem("Byelorussian", 46);
  112.                 IntItem("Uzbek", 47);
  113.                 IntItem("Kazakh", 48);
  114.                 IntItem("Azerbaijani", 49);
  115.                 IntItem("AzerbaijanAr", 50);
  116.                 IntItem("Armenian", 51);
  117.                 IntItem("Georgian", 52);
  118.                 IntItem("Moldavian", 53);
  119.                 IntItem("Kirghiz", 54);
  120.                 IntItem("Tajiki", 55);
  121.                 IntItem("Turkmen", 56);
  122.                 IntItem("Mongolian", 57);
  123.                 IntItem("MongolianCyr", 58);
  124.                 IntItem("Pashto", 59);
  125.                 IntItem("Kurdish", 60);
  126.                 IntItem("Kashmiri", 61);
  127.                 IntItem("Sindhi", 62);
  128.                 IntItem("Tibetan", 63);
  129.                 IntItem("Nepali", 64);
  130.                 IntItem("Sanskrit", 65);
  131.                 IntItem("Marathi", 66);
  132.                 IntItem("Bengali", 67);
  133.                 IntItem("Assamese", 68);
  134.                 IntItem("Gujarati", 69);
  135.                 IntItem("Punjabi", 70);
  136.                 IntItem("Oriya", 71);
  137.                 IntItem("Malayalam", 72);
  138.                 IntItem("Kannada", 73);
  139.                 IntItem("Tamil", 74);
  140.                 IntItem("Telugu", 75);
  141.                 IntItem("Sinhalese", 76);
  142.                 IntItem("Burmese", 77);
  143.                 IntItem("Khmer", 78);
  144.                 IntItem("Lao", 79);
  145.                 IntItem("Vietnamese", 80);
  146.                 IntItem("Indonesian", 81);
  147.                 IntItem("Tagalog", 82);
  148.                 IntItem("MalayRoman", 83);
  149.                 IntItem("MalayArabic", 84);
  150.                 IntItem("Amharic", 85);
  151.                 IntItem("Tigrinya", 86);
  152.                 IntItem("Galla", 87);
  153.                 IntItem("Oromo", 87);
  154.                 IntItem("Somali", 88);
  155.                 IntItem("Swahili", 89);
  156.                 IntItem("Ruanda", 90);
  157.                 IntItem("Rundi", 91);
  158.                 IntItem("Chewa", 92);
  159.                 IntItem("Malagasy", 93);
  160.                 IntItem("Esperanto", 94);
  161.                 IntItem("Welsh", 128);
  162.                 IntItem("Basque", 129);
  163.                 IntItem("Catalan", 130);
  164.                 IntItem("Latin", 131);
  165.                 IntItem("Quechua", 132);
  166.                 IntItem("Guarani", 133);
  167.                 IntItem("Aymara", 134);
  168.                 IntItem("Tatar", 135);
  169.                 IntItem("Uighur", 136);
  170.                 IntItem("Dzongkha", 137);
  171.                 IntItem("JavaneseRom", 138);
  172.                 IntItem("SundaneseRom", 139);
  173.                 IntItem("Unspecified", 32767);
  174.             };
  175.  
  176. //----------------------------------------------------------------------------
  177. // "Font" and "String" are utility statements used by "StyledText",
  178. // below.  The use of DynamicVList in all definitions is a work-
  179. // around.  See the comments in the EDL for details.
  180. //----------------------------------------------------------------------------
  181.  
  182. DeclareNamedStatement("Font")
  183.     Label("Font", Single, Width = UseParent)
  184.         Margin(5, 0, 5, 5)
  185.             VList(Width = UseParent)
  186.             {
  187.                 HList()
  188.                 {
  189.                     EditText(fFontSize, Fixed(16, 16), Label = "Font size:", Width = 100, LabelWidth = 50, LabelAlignment = Right);
  190.                     EditText(fFontStyle, Label = "Style:", Width = 100, LabelWidth = 50, LabelAlignment = Right);
  191.                 }
  192.                 
  193.                 DynamicVList(fFontName, String, Width = UseParent)
  194.                     VList(Width = UseParent)
  195.                     {
  196.                         IncludeNamedStatement("ScriptCode");
  197.                         IncludeNamedStatement("LanguageCode");
  198.                         EditText(fFontName, Label = "Font name:", LabelWidth = 50, LabelAlignment = Right, Width = 150);
  199.                     }
  200.             }
  201.  
  202. DeclareNamedStatement("String")
  203.     Label("String", Single, Width = UseParent)
  204.         Margin(5, 0, 5, 5)
  205.             DynamicVList(fString, String, Width = UseParent)
  206.                 VList(Width = UseParent)
  207.                 {
  208.                     IncludeNamedStatement("ScriptCode");
  209.                     IncludeNamedStatement("LanguageCode");
  210.                     EditText(fString, Label = "String:", LabelWidth = 50, LabelAlignment = Right);
  211.                 }
  212.  
  213. DeclareNamedStatement("StyledText")
  214.     Margin(5, 0, 5, 5)
  215.         VList(Width = UseParent)
  216.         {
  217.             IncludeNamedStatement("Font");
  218.             IncludeNamedStatement("String");
  219.         }    
  220.  
  221. //----------------------------------------------------------------------------
  222. // Main statement.
  223. //----------------------------------------------------------------------------
  224.  
  225. Margin(5, 5, 5, 5)
  226.     VList(Width = UseParent)
  227.     {
  228.         EditText(fIconID, Label = "IconID:", LabelWidth = 50, LabelAlignment = Right, Width = 150);
  229.         
  230.         Spacer(Height = 5);
  231.         
  232.         DynamicVList(fPartName, StyledText, Width = UseParent)
  233.             Label("PartName:", Single)
  234.                 IncludeNamedStatement("StyledText");
  235.         
  236.         Spacer(Height = 5);
  237.         
  238.         DynamicVList(fVersion, StyledText, Width = UseParent)
  239.             Label("Version:", Single)
  240.                 IncludeNamedStatement("StyledText");
  241.         
  242.         Spacer(Height = 10);
  243.         
  244.         DynamicVList(fCredits, StyledText, Width = UseParent)
  245.             Label("Credits:", Single)
  246.                 IncludeNamedStatement("StyledText");    
  247.  
  248.         Spacer(Height = 10);
  249.         
  250.         DynamicVList(fButtonString, String, Width = UseParent)
  251.             Label("ButtonString:", Single)
  252.                 IncludeNamedStatement("String");    
  253.                 
  254.         Spacer(Height = 10);
  255.         
  256.         Label("ButtonSize:", Single)
  257.             Margin(5, 5, 5, 5)
  258.                 HList()
  259.                 {
  260.                     StaticText("X:");
  261.                     EditText(fSizeX, Fixed(16, 16), Width = 50);
  262.                     
  263.                     Spacer(Width = 10);
  264.                     
  265.                     StaticText("Y:");
  266.                     EditText(fSizeY, Fixed(16, 16), Width = 50);
  267.                 }
  268.     }
  269.